﻿using cfg;
using Game.Assets.Scripts.Manager;
using QFramework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Game.CheseBoard.Data
{
    public class BaseCell : IController
    {
        public BaseCell()
        {

        }
        public BaseCell(int id)
        {
            table = this.GetModel<TableManager>();
            SetPiece(id);
        }

        protected Piece piece;
        public Piece Piece => piece;
        internal void RandomStaticData()
        {

        }

        public IArchitecture GetArchitecture()
        {
            return APP.Interface;
        }
        protected TableManager table;

        public virtual void SetPiece(int id)
        {
            piece = table.Tables.TbPiece.Get(id);
        }
    }
}
